app.factory("staticModel", function () {
    var instance = {
        defSelect: [
            {
                code: 1,
                name: "是"
            },
            {
                code: 0,
                name: "否"
            }
        ],
        ipType: [
            {
                code: 0,
                name: "公网"
            },
            {
                code: 1,
                name: "内网"
            }
        ],
        envType: [
            {
                code: 0,
                name: "保留"
            },
            {
                code: 1,
                name: "dev"
            },
            {
                code: 2,
                name: "daily"
            },
            {
                code: 3,
                name: "gray"
            },
            {
                code: 4,
                name: "prod"
            },
            {
                code: 5,
                name: "test"
            },
            {
                code: 6,
                name: "back"
            },
            {
                code: 7,
                name: "pre"
            }
        ],
        groupEnvType: [
            {
                code: 0,
                name: "all"
            },
            {
                code: 1,
                name: "dev"
            },
            {
                code: 2,
                name: "daily"
            },
            {
                code: 3,
                name: "gray"
            },
            {
                code: 4,
                name: "prod"
            },
            {
                code: 5,
                name: "test"
            },
            {
                code: 6,
                name: "back"
            }
        ],
        userType: [
            {
                code: 10,
                name: "bi"
            },
            {
                code: 1,
                name: "zookeeper"
            },
            {
                code: 2,
                name: "web-service"
            },
            {
                code: 3,
                name: "mysql"
            },
            {
                code: 4,
                name: "other"
            },
            {
                code: 5,
                name: "web-php"
            },
            {
                code: 6,
                name: "public"
            },
            {
                code: 7,
                name: "redis"
            },
            {
                code: 8,
                name: "web-server"
            },
            {
                code: 9,
                name: "front-end"
            }
        ],
        logType: [
            {
                code: 0,
                name: "key"
            },
            {
                code: 1,
                name: "password"
            }
        ],
        serverType: [
            {
                code: 0,
                name: "物理机"
            },
            {
                code: 1,
                name: "虚拟机"
            },
            {
                code: 2,
                name: "阿里云"
            }
        ],
        serverStatus: [
            {
                code: -1,
                name: "所有"
            },
            {
                code: 0,
                name: "未录入"
            },
            {
                code: 1,
                name: "已录入"
            },
            {
                code: 2,
                name: "下线"
            },
            {
                code: 3,
                name: "删除"
            }
        ],
        zabbixStatus: [
            {
                code: 0,
                name: "启用"
            },
            {
                code: 1,
                name: "禁用"
            }
        ],
        zabbixMonitor: [
            {
                code: 0,
                name: "未添加"
            },
            {
                code: 1,
                name: "已添加"
            }
        ],
        instanceChargeType: [
            {
                code: "PrePaid",
                name: "预付费"
            },
            {
                code: "PostPaid",
                name: "按量付费"
            }
        ],
        internetChargeType: [
            {
                code: "PayByTraffic",
                name: "按流量计费"
            },
            {
                code: "PayByBandwidth",
                name: "按带宽计费"
            }
        ],
        ecsServerIoOptimized: [
            {
                code: 0,
                name: false
            },
            {
                code: 1,
                name: true
            }
        ],
        serverUseType: [
            {
                code: 0,
                name: "物理机"
            },
            {
                code: 1,
                name: "虚拟化"
            },
            {
                code: 2,
                name: "数据挖掘"
            },
            {
                code: 9,
                name: "其它用途"
            }
        ],
        deployStatus: [
            {
                code: 0,
                name: "部署完毕"
            },
            {
                code: 1,
                name: "正在部署"
            },
            {
                code: 2,
                name: "恢复正常"
            }
        ],
        deployType: [
            {
                code: 0,
                name: "WAR"
            },
            {
                code: 1,
                name: "PKG"
            }
        ],
        deployRollback: [
            {
                code: 1,
                name: "是"
            },
            {
                code: 0,
                name: "否"
            }
        ],
        deployErrorCode: [
            {
                code: 0,
                name: "正常"
            },
            {
                code: 1,
                name: "错误"
            }
        ],
        serverCreateYear: [
            {
                code: 2017,
                name: "2017年"
            },
            {
                code: 2016,
                name: "2016年"
            }
        ],
        serverCreateMonth: [
            {
                code: 1,
                name: "1月"
            },
            {
                code: 2,
                name: "2月"
            },
            {
                code: 3,
                name: "3月"
            }
            ,
            {
                code: 4,
                name: "4月"
            },
            {
                code: 5,
                name: "5月"
            },
            {
                code: 6,
                name: "6月"
            },
            {
                code: 7,
                name: "7月"
            },
            {
                code: 8,
                name: "8月"
            },
            {
                code: 9,
                name: "9月"
            },
            {
                code: 10,
                name: "10月"
            },
            {
                code: 11,
                name: "11月"
            },
            {
                code: 12,
                name: "12月"
            }
        ],
        enabled: [
            {
                code: 0,
                name: "禁用"
            },
            {
                code: 1,
                name: "启用"
            }
        ],
        zoneIds: [
            {
                code: "cn-hangzhou-e",
                name: "华东1可用区E"
            },
            {
                code: "cn-hangzhou-b",
                name: "华东1可用区B"
            },
            {
                code: "cn-hangzhou-c",
                name: "华东1可用区C"
            }
        ],
        serverEnv: [
            {
                code: "online",
                name: "生产"
            },
            {
                code: "gray",
                name: "灰度"
            },
            {
                code: "daily",
                name: "日常"
            },
            {
                code: "dev",
                name: "开发"
            }
        ],
        configCenterItemGroup: [
            {
                code: "LDAP",
                name: "LDAP"
            },
            {
                code: "REDIS",
                name: "REDIS"
            },
            {
                code: "ZABBIX",
                name: "ZABBIX"
            },
            {
                code: "ALIYUN_ECS",
                name: "ALIYUN_ECS"
            },
            {
                code: "VCSA",
                name: "VCSA"
            },
            {
                code: "GETWAY",
                name: "GETWAY"
            },
            {
                code: "DINGTALK",
                name: "DINGTALK"
            },
            {
                code: "SHADOWSOCKS",
                name: "SHADOWSOCKS"
            },
            {
                code: "PUBLIC",
                name: "PUBLIC"
            },
            {
                code: "EXPLAIN_CDL",
                name: "EXPLAIN_CDL"
            },
            {
                code: "ANSIBLE",
                name: "ANSIBLE"
            },
            {
                code: "JENKINS",
                name: "JENKINS"
            }
        ],
        ecsExpansionNetworkConfig: [
            {
                code: 0,
                name: "默认"
            },
            {
                code: 1,
                name: "自定义"
            }
        ],
        dnsmasqItemType: [
            {
                code: 0,
                name: "system"
            },
            {
                code: 1,
                name: "server"
            },
            {
                code: 2,
                name: "address"
            }
        ],
        projectType: [
            {
                code: 0,
                name: "长期"
            },
            {
                code: 1,
                name: "临时"
            }
        ],
        projectStatus: [
            {
                code: 0,
                name: "正常"
            },
            {
                code: 1,
                name: "死亡"
            },
            {
                code: 2,
                name: "丢失"
            },
            {
                code: 3,
                name: "续签"
            }
        ],
        buildTools: [
            {
                code: 0,
                name: "Maven 3.3.3"
            },
            {
                code: 1,
                name: "Gradle 2.5"
            },
            {
                code: 2,
                name: "Gradle 3.1"
            }
        ],
        jdks: [
            {
                code: 0,
                name: "7"
            },
            {
                code: 1,
                name: "8"
            },
            {
                code: 2,
                name: "9"
            }
        ],
        tomcats: [
            {
                code: 0,
                name: "7"
            },
            {
                code: 1,
                name: "8"
            },
            {
                code: 2,
                name: "9"
            }
        ],
        instanceType: [
            {
                code: 0,
                name: "1核2GB(推荐dialy环境)"
            },
            {
                code: 1,
                name: "2核4GB(推荐gray环境)"
            },
            {
                code: 2,
                name: "4核8GB(推荐prod环境)"
            }
        ],
        hookType: [
            {
                code: 0,
                name: "前端"
            },
            {
                code: 1,
                name: "Android"
            },
            {
                code: 2,
                name: "iOS"
            }
        ],
        jenkinsBuildType: [
            {
                code: 0,
                name: "前端构建"
            },
            {
                code: 1,
                name: "Android构建"
            },
            {
                code: 2,
                name: "iOS构建"
            },
            {
                code: 3,
                name: "Test"
            }
        ],
        jenkinsJobEnvType: [
            {
                code: 1,
                name: "prod"
            },
            {
                code: 2,
                name: "daily"
            },
            {
                code: 3,
                name: "gray"
            },
            {
                code: 4,
                name: "onlineDev"
            },
            {
                code: 5,
                name: "release"
            },
            {
                code: 6,
                name: "all"
            },
            {
                code: 7,
                name: "debug"
            }
        ],
        jenkinsTriggerType: [
            {
                code: 0,
                name: "skip"
            },
            {
                code: 1,
                name: "trigger"
            }
        ],
        jenkinsProjectParamType: [
            {
                code: 0,
                name: "继承"
            },
            {
                code: 1,
                name: "可变"
            }
        ],
        jenkinsBuildTools: [
            {
                code: 0,
                name: "Gradle"
            },
            {
                code: 1,
                name: "Maven"
            }
        ],
        scriptType: [
            {
                code: 0,
                name: "private"
            },
            {
                code: 1,
                name: "public"
            }
        ],
        aliyunMqMessageType: [
            {
                code: 0,
                name: "普通消息"
            },
            {
                code: 1,
                name: "分区顺序消息"
            },
            {
                code: 2,
                name: "全局顺序消息"
            },
            {
                code: 4,
                name: "事务消息"
            },
            {
                code: 5,
                name: "定时/延时消息"
            }
        ],
        rollbackType: [
            {
                code: 0,
                name: "按构件包回滚"
            },
            {
                code: 1,
                name: "自动Tag回滚"
            }
        ],
        ciType: [
            {
                code: 0,
                name: "CI+CD"
            },
            {
                code: 1,
                name: "CI"
            }
        ],
        appType: [
            {
                code: 0,
                name: "Java"
            },
            {
                code: 1,
                name: "Python"
            },
            {
                code: 2,
                name: "iOS"
            },
            {
                code: 3,
                name: "Android"
            },
            {
                code: 4,
                name: "Test"
            }
        ],
        accessKey: [
            {
                code: 0,
                name: "无"
            },
            {
                code: 1,
                name: "有"
            }
        ],
        queryPhaseType: [
            {
                code: -1,
                name: "进行中"
            },
            {
                code: 1,
                name: "全部"
            },
            {
                code: 5,
                name: "已完成"
            }
        ],
        autoBuildType: [
            {
                code: false,
                name: "禁用"
            },
            {
                code: true,
                name: "PUSH BUILD"
            }
        ],
        triggerBuildType: [
            {
                code: 0,
                name: "静默"
            },
            {
                code: 1,
                name: "触发"
            }
        ],
        androidBuildEnv: [
            {
                code: "beta",
                name: "beta"
            },
            {
                code: "release",
                name: "release"
            },
            {
                code: "debug",
                name: "debug"
            }
        ],
        androidBuildProductFlavor: [
            {
                code: "msms",
                name: "美食买手"
            },
            {
                code: "qihoo360",
                name: "奇虎360"
            },
            {
                code: "baidu",
                name: "百度"
            },
            {
                code: "baidusem",
                name: "百度SEM"
            },
            {
                code: "yyb",
                name: "应用宝"
            },
            {
                code: "taobao",
                name: "淘宝"
            },
            {
                code: "sanxing",
                name: "三星"
            },
            {
                code: "huawei",
                name: "华为"
            },
            {
                code: "xiaomi",
                name: "小米"
            },
            {
                code: "meizu",
                name: "魅族"
            },
            {
                code: "lianxiang",
                name: "联想"
            },
            {
                code: "leshi",
                name: "乐视"
            },
            {
                code: "chuizi",
                name: "锤子"
            },
            {
                code: "vivo",
                name: "VIVO"
            },
            {
                code: "oppo",
                name: "OPPO"
            },
            {
                code: "sougou",
                name: "搜狗"
            },
            {
                code: "anzhi",
                name: "anzhi"
            },
            {
                code: "jifeng",
                name: "机锋"
            },
            {
                code: "mumayi",
                name: "木蚂蚁"
            },
            {
                code: "youyishichang",
                name: "优亿市场"
            },
            {
                code: "bmhy",
                name: "斑马会员"
            },
            {
                code: "hqbs",
                name: "环球捕手"
            },
            {
                code: "ceshi",
                name: "测试渠道"
            }
        ],
        gitlabAccessLevel: [
            {
                code: "Owner",
                name: "所有者"
            },
            {
                code: "Master",
                name: "主程序员"
            },
            {
                code: "Developer",
                name: "开发人员"
            },
            {
                code: "Reporter",
                name: "报告者"
            }
        ],
        gitlabProjectAccessLevel: [
            {
                code: "Master",
                name: "主程序员"
            },
            {
                code: "Developer",
                name: "开发人员"
            },
            {
                code: "Reporter",
                name: "报告者"
            }
        ],
        atAll: [
            {
                code: false,
                name: "自己"
            },
            {
                code: true,
                name: "所有人"
            }
        ],
        workflowList: [
            {
                key: "KEYBOX",
                templateUrl: "todoKeyboxModal",
                controller: "todoKeyboxInstanceCtrl"
            },
            {
                key: "RAM",
                templateUrl: "todoAliyunRamModal",
                controller: "todoAliyunRamInstanceCtrl"
            },
            {
                key: "LDAPGROUP",
                templateUrl: "todoLdapGroupModal",
                controller: "todoLdapGroupInstanceCtrl"
            },
            {
                key: "RAMPolicy",
                templateUrl: "todoAliyunRamPolicyModal",
                controller: "todoAliyunRamPolicyInstanceCtrl"
            },
            {
                key: "ROLE",
                templateUrl: "todoRoleModal",
                controller: "todoRoleInstanceCtrl"
            },
            {
                key: "GITLABGROUP",
                templateUrl: "todoGitlabGroupModal",
                controller: "todoGitlabGroupInstanceCtrl"
            },
            {
                key: "GITLABPROJECT",
                templateUrl: "todoGitlabProjectModal",
                controller: "todoGitlabProjectInstanceCtrl"
            },
            {
                key: "CIANDROIDAUTH",
                templateUrl: "todoCIAndroidAuthModal",
                controller: "todoCIAndroidAuthInstanceCtrl"
            },
            {
                key: "CITESTAUTH",
                templateUrl: "todoCITestAuthModal",
                controller: "todoCITestAuthInstanceCtrl"
            }
        ],
        channelType: [
            {
                code: 0,
                name: "全渠道"
            },
            {
                code: 1,
                name: "选择渠道"
            }
        ],
        servicePortType: [
            {
                code: "http",
                name: "Http"
            },
            {
                code: "debug",
                name: "JavaDebug"
            },
            {
                code: "dubbo",
                name: "Dubbo"
            }
        ],
        serviceEnvType: [
            {
                code: 5,
                name: "test"
            },
            {
                code: 7,
                name: "pre"
            },
            {
                code: 4,
                name: "prod"
            }
        ],
        nginxTcpPeriod: [
            {
                code: 30,
                name: "30分钟"
            },
            {
                code: 60,
                name: "1小时"
            },
            {
                code: 120,
                name: "2小时"
            }
        ]
    }

    return instance;
});